﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using br.com.SistemaChamados.Enum;
using br.com.SistemaChamados.Model;
using br.com.SistemaChamados.DAO;
using System.Data;

namespace br.com.SistemaChamados.Controller
{
    public class AnnexController
    {
        public EnumGenericState InsertAnnex(Annex annex)
        {
            EnumGenericState resultAnnex = EnumGenericState.GENERIC_STATE_UNKNOW;
            try
            {
                AnnexDAO annexDAO = new AnnexDAO();
                resultAnnex = annexDAO.InsertAnnex(annex);
            }
            catch (Exception ex)
            {
                resultAnnex = EnumGenericState.GENERIC_STATE_FAILED;
                throw ex;
            }
            return resultAnnex;
        }
        public AnnexController()
        {
            //
            // TODO: Add constructor logic here
            //
        }
    }
}